package com.gnerv.sylvanas.assembly;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Properties;

@Slf4j
@RestController
@SpringBootApplication
public class SylvanasAssemblyApplication {

	public static void main(String[] args) {
		SpringApplication.run(SylvanasAssemblyApplication.class, args);
        Properties properties = System.getProperties();
        log.info("info");
    }

	@RequestMapping(value = "/get")
	public void get(){
        while (true) {
            log.info("infoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfo");
            log.info(System.getProperty("user.dir"));
            log.debug("debugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebug");
            log.error("errorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerror");
            log.warn("warnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarn");
            log.trace("tracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetrace");
        }
	}

}
